package com.example.knowman.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.knowman.ReturnMessage.Message;
import com.example.knowman.entity.rootList;

public interface IrootListService extends IService<rootList> {

    rootList getByUsername(String username);

//    IPage<JSONObject> getAll(Integer pageNum, Integer pageSize, String username);

    Message updateByUsername(String username, String realname, Integer rootType);


    Message commit(String username, String passwd, String realname, Integer rootType);

    Message deleteByUsername(String username);


    IPage<rootList> getAll(Integer pageNum, Integer pageSize, String username);
}
